SNCodeExchange

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > SNCodeExchange

## SNCodeExchange

The SNCodeExchange function will verify if the Serial Number is valid and has activations remaining. If it succeeds, then it will consume an activation and return an Activation Code.

This function is now deprecated. Please instead use SNCodeExchangeEx.

###### Syntax

TCheckpointActivationResponse * SNCodeExchange( BSTR ASerialNo, BSTR AnAuthRequestCode ) ;

###### Parameters

ASerialNo

[IN] This is a string value in which you pass the Serial Number the user entered that you wish to activate.

AnAuthRequestCode

[IN] This is a string value in which you pass the Authorization code the user entered that you wish to activate.

###### Remarks

This is a function that is called by the ClientProtector. This should not be used by anything else besides the ClientProtector. The reference for this function is included only for completeness.

This function does not automatically perform a serial number exchange. The application that calls this web service would need to input the Activation Code that is returned to unlock the corresponding Authorization ID.

###### Return Value

Returns the custom class TCheckPointActivationResponse. The fields of interest that is related to this method are:

- CheckPointReturnCode - this field will return a TCheckPointReturnCode.

- ActivationCode - this field contains the activation code that would be used to unlock features on the Client's Computer.

- ErrorMessage - If the a error code is returned, the associated error message can be found in this field.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"